Function isotope::utils::n_ones_const_u32[][src]

pub const fn n_ones_const_u32(n: u32) -> u32
Expand description

Get an integer composed of min(BITS, n) ones followed by BITS - min(BITS, n) zeros, where N is an integer type with BITS bits.